#include <stdio.h>

int main()
{
    int x = 0;
    int y = 0;

    scanf_s("%d/n", &x);
    scanf_s("%d/n", &y);
    for (int i = 0; i < x; i++)
    {
        printf("*");

    }
    printf("\n");
    for (int n = 0; n < y; n++)
    {
        printf("*");
    }
    printf("\n");
    return 0;
}